package com.ddxz.demo.shiro.jwt.tool;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * class description
 *
 * @author 朱宗刚
 * @version 1.0.0
 * @date 2020/12/2
 */

public class RedisClientInfo {
    private String host;
    private Integer port;
    private Boolean ssl;
    private String password;
    private Integer database;
    private String clientName;
    private Integer timeout;

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = Integer.parseInt(port);
    }

    public Boolean getSsl() {
        return ssl;
    }

    public void setSsl(String ssl) {
        this.ssl = Boolean.parseBoolean(ssl);
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getDatabase() {
        return database;
    }

    public void setDatabase(String database) {
        this.database = Integer.parseInt(database);
    }

    public String getClientName() {
        return clientName;
    }

    public void setClientName(String clientName) {
        this.clientName = clientName;
    }

    public Integer getTimeout() {
        return timeout;
    }

    public void setTimeout(String timeout) {
        this.timeout = Integer.parseInt(timeout);
    }
}
